﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BIS.Portal.Core.Base;
using BIS.Portal.Core.Global;

namespace BIS.Portal.Modules.CMS
{
    public partial class SimpleMenuControl_Settings : ControlSettingBase
    {
        #region Get Data Settings
        public string ClassName
        {
            get { return GetControlSetting<string>(ModuleSettingNames.SimpleMenu.txtClassName, PortalContext.LanguageAlias); }
        }
        public string ClassNameActive
        {
            get { return GetControlSetting<string>(ModuleSettingNames.SimpleMenu.txtClassActive, PortalContext.LanguageAlias); }
        }
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            loaddata();
        }

        private void loaddata()
        {
            txtClassName.Text = ClassName;
            txtClassActive.Text = ClassNameActive;
        }

        public override void SaveSettings(Dictionary<string, string> settings)
        {
            SetControlSettingForAllLanguages(txtClassName.ID, ModuleSettingNames.SimpleMenu.txtClassName, settings);
            SetControlSettingForAllLanguages(txtClassActive.ID, ModuleSettingNames.SimpleMenu.txtClassActive, settings);
        }

    }
}